﻿@using PopForums.Controllers;
@using PopForums.Extensions;
@{
	Layout = "~/Views/Shared/_Layout.cshtml";
}

@section HeaderContent {
    <title>@ViewBag.Title</title>
	<script src="~/Scripts/jquery-2.1.1.min.js" type="text/javascript"></script>
	<script src="~/Scripts/jquery-ui-1.10.0.popforums.min.js" type="text/javascript"></script>
	<script src="~/Scripts/jquery.signalR-2.1.0.min.js" type="text/javascript"></script>
	<script src="~/signalr/hubs" type="text/javascript"></script>
	<script src="~/Scripts/PopForums.js" type="text/javascript"></script>
	<link href="~/Content/PopForums/Structure.css" type="text/css" rel="Stylesheet" />
	<link href="~/Content/PopForums/Style.css" type="text/css" rel="Stylesheet" />
    @RenderSection("HeaderContent", required: false)
}

<div id="ForumContainer">
	<div id="AccountBox">
		@if (this.GetUserFromViewData() == null) {
			@Html.ActionLink(PopForums.Resources.CreateAnAccount, "Create", AccountController.Name)@: |
			@Html.ActionLink(PopForums.Resources.Login, "Login", AccountController.Name)@: | 
			@Html.ActionLink(PopForums.Resources.Recent, "Recent", ForumController.Name, new { page = 1 }, null)@: | 
			@Html.ActionLink(PopForums.Resources.ActivityFeed, "Index", FeedController.Name)@: | 
			@Html.ActionLink(PopForums.Resources.Search, "Index", SearchController.Name)
  }
  else
  {
			@Html.ActionLink(this.GetUserFromViewData().Name, "ViewProfile", AccountController.Name, new { id = this.GetUserFromViewData().UserID }, null)@: | 
			@Html.ActionLink(PopForums.Resources.Account, "EditProfile", AccountController.Name)@: | 
			@Html.ActionLink(PopForums.Resources.Recent, "Recent", ForumController.Name, new { page = 1 }, null)@: | 
			@Html.ActionLink(PopForums.Resources.Subscriptions, "Topics", SubscriptionController.Name)@: | 
			@Html.ActionLink(PopForums.Resources.Favorites, "Topics", FavoritesController.Name, new { page = 1 }, null)@: | 
			@Html.ActionLink(PopForums.Resources.ActivityFeed, "Index", FeedController.Name)@: | 
			@Html.ActionLink(PopForums.Resources.Search, "Index", SearchController.Name)@: | 
			@Html.ActionLink(PopForums.Resources.PrivateMessages, "Index", PrivateMessagesController.Name)<text> </text>@Html.Action("NewPMCount", PrivateMessagesController.Name) @: | 
			@Html.ActionLink(PopForums.Resources.Logout, "Logout", AuthorizationController.Name)
  }
	</div>
    <div>
        @RenderBody()
    </div>
	<div id="ForumFooter">
		<a href="http://popforums.com/">POP Forums</a> - &copy;@DateTime.Now.Year, POP World Media, LLC
	</div>
</div>